package com.kyz.speechservice;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

import androidx.annotation.Nullable;

public class SpeechService extends Service {
    public static boolean isStart = false;

    @Override
    public void onCreate() {
        super.onCreate();
        Toast.makeText(this, "已启动服务", Toast.LENGTH_SHORT).show();
        isStart = true;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.e("tag_speechservice", "SpeechService onStartCommand......");
        return super.onStartCommand(intent, flags, startId);
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        isStart = false;
    }
}
